
/**
 * 删除动态添加的路由
 * */
export  function deleteRouters(router: any) {
    console.log(router);
    
    router.addRoute({
        path: '/home',
        name: 'home',
        component: () => import('@/views/home/index.vue'),
        children: [{
            path: '',
            redirect: '/home/indexdefault'
        },
        {
            path: 'indexdefault',
            name: 'indexindexdefault',
            component: () => import('@/views/home/indexdefault.vue')
        }]
    })

}